home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / TIFFframes / TIFFframes.app / TIFFframes.nib (.txt) < prev   
NeXT TypedStream Data  |  1995-06-12  |  9KB  |  183 lines

  1. typedstream
  2. StreamTable
  3.     HashTable
  4. Object
  5. [20c]
  6. typedstream
  7. [735c]
  8. typedstream
  9.     HashTable
  10. Object
  11. FirstResponder
  12. HeaderClass
  13. %%%%i@@
  14. firstnib
  15. checkSpelling:
  16. alignSelCenter:
  17.     unscript:
  18. pasteFont:
  19. runPageLayout:
  20. superscript:
  21. copyRuler:
  22.     copyFont:
  23. selectAll:
  24. pasteRuler:
  25. toggleRuler:
  26. showGuessPanel:
  27. alignSelLeft:
  28. paste:
  29. performClose:
  30. arrangeInFront:
  31. subscript:
  32. copy:
  33. alignSelRight:
  34. delete:
  35. orderFrontColorPanel:
  36. underline:
  37. performMiniaturize:
  38. ToTIFF
  39. genericobject_nib
  40. bitmapinfo
  41. compressiontype
  42. equalizeswitch
  43. toTIFFMethod:
  44. doLZW:
  45. doNONE:
  46. doEQUALIZE:
  47. setDefaults:
  48. doJPEG:
  49. doPACKBITS:
  50. [8467c]
  51. typedstream
  52.     HashTable
  53. Object
  54. NibData
  55. @@@@s
  56. Storage
  57. {*@@}
  58.     [42{*@@}]
  59. File's Owner
  60. CustomObject
  61. Application
  62. MainMenu
  63. MenuTemplate
  64. *@*@ccc
  65. TIFFframes
  66. Matrix
  67. Control
  68.     Responder
  69. @:@iiii
  70. MenuCell
  71. ButtonCell
  72. ActionCell
  73.     Helvetica
  74. Info Panel...
  75. Help...
  76. ff@@#::s
  77. submenuAction:
  78. Bitmap
  79.     menuArrow
  80. Paste
  81. Select All
  82. MyWindow
  83. WindowTemplate
  84. iiii***@s@
  85. GEdit the table, set compression, check equalize if desired, hit RETURN.
  86. Window
  87. bitmapinfo
  88. Compression
  89. FormCell
  90. Width:
  91. Height:
  92. Bitmaps Directory:
  93. red filename:
  94. green filename:
  95. blue filename:
  96. Starting Frame #:
  97. Ending Frame #:
  98. Field:
  99. Convert Bitmaps to TIFF
  100. NXImage
  101. NXreturnSign
  102. Button
  103. NXradio
  104. NXradioH
  105. PackBits
  106. Radio
  107. get default bitmapinfo
  108.     Equalize?
  109. NXswitch
  110.     NXswitchH
  111. Width
  112. Height
  113. Bitmaps Directory
  114. red filename
  115. green filename
  116. blue filename
  117. Starting Frame #
  118. Ending Frame #
  119. Read Bitmaps
  120. Matrix1!
  121. ToTIFFInstance
  122. ToTIFF
  123. Panel
  124. cahalan64X86
  125.     TextField
  126. TextFieldCell
  127. TIFFframes Conversion Program
  128. Version 1.0
  129. 1by Robert F. Cahalan
  130. cahalan@clouds.gsfc.nasa.gov
  131. Field1^S
  132. Field2jS
  133. VersionNumbereS
  134. ScrollView
  135. ClipView
  136. ciifffcfffs
  137. [3880c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  138. \margl40
  139. \margr40
  140. {\colortbl\red0\green0\blue0;}
  141. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ul0\fs24 RAW BITMAPS ---> TIFF ANIMATION SEQUENCE
  142. \b0 \
  143. This program combines N triplets of raw bitmap files, each representing an R, G, or B 8-bit image plane, into N 24-bit compressed RGB TIFF files, representing N frames in an animation sequence, and stores the result into a directory of your choice.  If you check the "Equalize?" box, then the intensities in each image plane will be histogram-equalized.  When you hit return, or click the "Convert..." button, a SavePanel pops up.   In the SavePanel you enter the directory name, and the filename without any frame# or tiff extension.  For example: "MyMovie.anim/MyMovie".   Give the directory a ".anim" extension if you want to view it with Icon, Movie, BackSpace, or MediaView.  \
  144. Each input triplet of files for a given frame must be named in the form "Rname.frame#", "Gname.frame#", and "Bname.frame#" where Rname, Gname and Bname are names you select to distinguish the R, G, and B components, and where frame# is an integer specifying the frame to which this triplet will be assigned.  The sequence of frame #'s must increase by ones from some minimum starting value, to a maximum ending value, with all intermediate values included.  The omission of an intermediate frame will give an error message, after the TIFF frames up to that point have been created.  \
  145. To fill in the "bitmapinfo" form with default values, you can hit the "get default bitmapinfo" button.  For "historical reasons" the defaults are that your R, G, and B image planes are  each 256X256, that they are stored in a directory '~/Library/Images/bitmaps', that they are called 'b7', 'b4', and 'b2', that you have 40 frames beginning with frame #1, and that you want to use JPEG compression, and not equalize.  You can link the default '~/Library/Images/bitmaps' to some other directory if you wish, or just edit the default each time.  Remember that the width and height must be identical for all frames, that the filenames assigned to the red, green, and blue image planes do not include the framenumber extension, and that the total number of frames is N = ending# - starting# + 1.  When you hit RETURN or click the "Convert" button, the SavePanel will allow you to put the compressed TIFF frames anywhere you want.  \
  146. This program uses the default JPEG compression factor of 10, but you can change it with CompressionLab (see /NextDeveloper/Demos).  Use compression=None if you want to move the images to a Mac.\
  147. \b STRIPPING HEADERS
  148. \b0 \
  149. If you have an image file in some unknown format, but with known header size, and known width and height, you can use the unix utility 'dd' to separate out each image plane into a separate file.   For example, file 'bitmap.dat' has a 512-byte header followed by three 512X512 8-bit image planes.  The following makes separate raw images:\
  150. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 dd if=bitmap.dat of=bitmap.r skip=1 count=512\
  151. dd if=bitmap.dat of=bitmap.g skip=513 count=512\
  152. dd if=bitmap.dat of=bitmap.b skip=1025 count=512\
  153. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  154. Do a 'man dd' to see how this works.  The above commands use the default block size of 512, but you can change that.  Once you have the separate files, use RGBtoTIFF to put them into a TIFF file.\
  155. \b KNOWN FORMATS
  156. \b0 \
  157. Of course if your image format is GIF, pbm, or any of a number of other ones, you can use ImageViewer by 
  158. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 Lovstrand@EuroPARC.Xerox.COM
  159. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 , for example, to load it in and save to TIFF format.  
  160. NXCursor
  161. NXibeam
  162. Scroller
  163. _doScroller:
  164. @@@ffs
  165. ScrollingText
  166. {i*@@@}
  167. [18{i*@@@}]
  168. hide:
  169. terminate:
  170. copy:
  171. paste:
  172. selectAll:
  173. toTIFFMethod:
  174. performClick:
  175. makeKeyAndOrderFront:
  176. compressiontypeQ!
  177. doLZW:#Q
  178. doPACKBITS:)Q
  179. doJPEG:+Q
  180. doNONE:-Q
  181. setDefaults:1Q
  182. doEQUALIZE:5Q
  183.